package nodes;

import compiler.Compiler;
import compiler.SymbolTable;

import descriptors.AbstractDescr;

public class FieldListNode extends AbstractNode {

	private ListNode<IdentNode> identList;
	private AbstractNode type;
	
	public FieldListNode(ListNode<IdentNode> identList, AbstractNode type,int line, int column){
		super(line,column);
		this.identList=identList;
		this.type=type;
	}
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public AbstractDescr compile(
			SymbolTable symbolTable, Compiler compiler) {
		// TODO Auto-generated method stub
		return null;
	}
	
	public ListNode<IdentNode> identList(){
		return identList;
	}
	
	public AbstractNode type(){
		return type;
	}

	@Override
	public void print() {
		trace("FieldListNode");
		identList.print();
		type.print();
		unindent();
	}

}
